﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="numberadder.aspx.vb" Inherits="CakeThatIBaked.numberadder" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h1>
        Number Adder</h1>
    <p>
        First Number:
        <asp:TextBox ID="tbNoOne" runat="server"></asp:TextBox>
        <asp:CompareValidator ID="cvNoOne" runat="server" ControlToValidate="tbNoOne" 
            ErrorMessage="You need to input a number" ForeColor="#CC0000" 
            Operator="DataTypeCheck" Type="Double"></asp:CompareValidator>
    </p>
    <p>
        Second Number:
        <asp:TextBox ID="tbNoTwo" runat="server"></asp:TextBox>
        <asp:CompareValidator ID="cvNoTwo" runat="server" ControlToValidate="tbNoTwo" 
            ErrorMessage="You need to input a number" ForeColor="#CC0000" 
            Operator="DataTypeCheck" Type="Double"></asp:CompareValidator>
    </p>
    <p>
        <asp:Button ID="btnAdd" runat="server" Text="Add the Numbers" />
    </p>
    <p>
        <asp:Label ID="lblResult" runat="server"></asp:Label>
    </p>
</asp:Content>
